<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ad_AddEditResources.aspx.cs" Inherits="Admin_Ad_AddEditResources" %>
<%@ Register Src="Include/Ad_footer.ascx" TagName="Ad_footer" TagPrefix="uc3" %>

<%@ Register Src="Include/Ad_left.ascx" TagName="Ad_left" TagPrefix="uc2" %>

<%@ Register Src="Include/Ad_header.ascx" TagName="Ad_header" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Manage Resources</title>
    <link href="include/styles.css" rel="stylesheet" />
    <script src="../JScript/gen_validatorv2.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

	<!-- Masthead starts from here-->
	
	<uc1:Ad_header ID="Ad_header1" runat="server" />
	
	<!-- Masthead ends here-->
	<tr>
    <td></td>
    <td><table width="716" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="150" valign="top">
		
		<!-- Left panel starts from here-->
		
		<uc2:Ad_left ID="Ad_left1" runat="server" />
		
		<!-- Left panel ends from here-->
		</td>
        <td width="15" valign="top"><img src="../images/spacer.gif" width="15" height="1" /></td>
        <td width="551" valign="top"><table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tblborder">
          <tr>
            <td width="2%" height="35"></td>
            <td width="96%" class="normalblack_12" align="center"><b>
                <asp:Label ID="lblHead" runat="server"></asp:Label></b></td>
            <td width="2%"></td>
          </tr>
          <tr>
            <td height="15"></td>
            <td align="center">
                <asp:Label ID="lblMsg" runat="server" CssClass="normalblack_12"></asp:Label></td>
            <td></td>
          </tr>
          <tr>
            <td></td>
            <td valign="top" class="normalgrey_12"> </td>
            <td></td>
          </tr>
          <tr>
            <td style="height: 90px"></td>
            <td style="height: 90px">
                <table width="100%">
                    <tr>
                        <td valign="top" class="normalblack_12">
                            Posted By</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:TextBox ID="txtSENDERNAME" runat="server" MaxLength="100" Width="300px" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtSENDERNAME"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="Name is required!"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td valign="top" class="normalblack_12">
                            Site URL</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:TextBox ID="txtURL" runat="server" MaxLength="100" Width="300px" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtURL"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="URL Required!"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtURL"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="Invalid URL!" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td valign="top" class="normalblack_12">
                            Title of Site</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:TextBox ID="txtTITLE" runat="server" MaxLength="200" Width="300px" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTITLE"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="Title is required!"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td valign="top" class="normalblack_12">
                            Site
                            Description</td>
                        <td valign="top">
                            :</td>
                        <td valign="top">
                            <asp:TextBox ID="txtDESCRIPTION" runat="server" Height="79px" TextMode="MultiLine"
                                Width="300px" MaxLength="500" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtDESCRIPTION"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="Description is required!"></asp:RequiredFieldValidator></td>
                    </tr>
                    <tr>
                        <td valign="top" class="normalblack_12">
                            Reciprocal URL</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:TextBox ID="txtRECIPROCAL" runat="server" MaxLength="100" Width="300px" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtRECIPROCAL"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="Invalid URL!" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr>
                        <td valign="top" class="normalblack_12">
                            E-mail Address</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:TextBox ID="txtEMAIL" runat="server" MaxLength="100" Width="300px" CssClass="normalblack_12"></asp:TextBox><br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtEMAIL"
                                CssClass="normalblack_12" Display="Dynamic" ErrorMessage="EMail is required!"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtEMAIL"
                                CssClass="normalblack_12" ErrorMessage="Invalid E-Mail" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
                    </tr>
                    <tr id="rowStatus" runat="server">
                        <td valign="top" class="normalblack_12">
                            Select link status</td>
                        <td valign="top">
                            :</td>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="normalblack_12">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td valign="top">
                        </td>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" CssClass="normalblack_12" /></td>
                    </tr>
                </table>
            </td>
            <td style="height: 90px"></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
    <td></td>
  </tr>
  <tr>
    <td height="30" colspan="3"></td>
  </tr>
  <tr>
    <td height="1" bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
    <td bgcolor="#CCCCCC"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
  </tr>
  <tr>
    <td height="20" colspan="3"></td>
  </tr>
  
	<!-- Bottom starts from here-->
	
    <uc3:Ad_footer ID="Ad_footer1" runat="server" />
	
	<!-- Bottom ends here-->
	
</table>
    </form>
<script>
		//You should create the validator only after the definition of the HTML form
        

//	     var frmvalidator  = new Validator("form1","<%=btnSave.ClientID %>");
//	     
//	    frmvalidator.addValidation("txtSENDERNAME","req","Please enter sender name.");	
//	    frmvalidator.addValidation("txtURL","req","Please enter URL.");	
//	    frmvalidator.addValidation("txtTITLE","req","Please enter title.");	
//	    frmvalidator.addValidation("txtDESCRIPTION","req","Please enter description.");	
////	    frmvalidator.addValidation("txtRECIPROCAL","req","Please Enter First Name.");	
//	    frmvalidator.addValidation("txtEMAIL","req","Please enter E-Mail Address.");	
	    
</script>

</body>	    
</html>
